package com.lagou.edu.config;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;


public class BeanDefinition {

    private String beanName;

    private Object beanObject;

    private List<String> dependBeanName=new ArrayList<>();

    /**
     * 是否需要依赖注入
     */
    private boolean isAutoWired;

    /**
     * 是否实现接口
     */
    private boolean isHaveParent;

    /**
     * 需要开启事务的方法
     */
    private List<Method> transactionMethods=new ArrayList<>();


    public String getBeanName() {
        return beanName;
    }

    public void setBeanName(String beanName) {
        this.beanName = beanName;
    }

    public Object getBeanObject() {
        return beanObject;
    }

    public void setBeanObject(Object beanObject) {
        this.beanObject = beanObject;
    }

    public List<String> getDependBeanName() {
        return dependBeanName;
    }

    public void setDependBeanName(List<String> dependBeanName) {
        this.dependBeanName = dependBeanName;
    }

    public boolean isAutoWired() {
        return isAutoWired;
    }

    public void setAutoWired(boolean autoWired) {
        isAutoWired = autoWired;
    }

    public boolean isHaveParent() {
        return isHaveParent;
    }

    public void setHaveParent(boolean haveParent) {
        isHaveParent = haveParent;
    }

    public List<Method> getTransactionMethods() {
        return transactionMethods;
    }

    public void setTransactionMethods(List<Method> transactionMethods) {
        this.transactionMethods = transactionMethods;
    }
}
